<template>
  <div>
    <h1>订单记录</h1>
    <el-table :data="tableData" style="width: 100%">
      <el-table-column prop="recordId" label="id" />
      <el-table-column prop="optRecord" label="记录名称" />
      <el-table-column prop="createTime" label="创建时间" />
    </el-table>
  </div>
</template>
<script lang="ts" setup>
import { onMounted, ref } from "vue";
import { getOrderRecord } from "../api/api";
const tableData = ref([]);
const getRecord = () => {
  getOrderRecord().then((res) => {
    if (res.data.code == 200) {
      tableData.value = res.data.data;
    }
  });
};
onMounted(() => {
  getRecord();
});
</script>
